import routes from "@/routes";
const RouterList:{
  path: any,
  name: any
}[] = []
routes.forEach(route => {
  if (route.routes) {
    route.routes.forEach((item, index2) => {
      RouterList.push({
        path: item.path,
        name: item.name
      })
    });
  } else {
    RouterList.push({
      path: route.path,
      name: route.name
    })
  }
});
export default RouterList